package homework.Exercise2And3;

public class TestCompteurBorne {
    public static void main(String[] args) {
        BoundedCounter boundedCounter = new BoundedCounter(0,5);
        System.out.print(boundedCounter.getValue()+" ");
        for (int i = 0; i < 10; i++) {
            boundedCounter.incrementer();
        }
        System.out.print(boundedCounter.getValue()+" ");
        for (int i = 0; i < 10; i++) {
            boundedCounter.decrementer();
        }
        System.out.print(boundedCounter.getValue()+" ");
    }
}
